package com.xnyzc.lhy.mis.controller.cmsapi.order;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.cms.order.CmsOadOrderPersonalParam;
import com.xnyzc.lhy.mis.service.cms.order.CmsOrderOperationRecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 订单详情中操作记录
 * @Author wangshuo
 * @Date 2019/12/06 16:31
 **/
@RestController
@RequestMapping(value = "cms/orderoperation")
public class CmsOrderOperationController {

    @Autowired
    private CmsOrderOperationRecordService cmsOrderOperationRecordService;

    /**
     * 订单详情中操作记录
     *
     * @return
     */
    /*@PostMapping(value = "getCmsOrderOperationRecord")
    public Rv getCmsOrderOperationRecord(@RequestBody CmsOadOrderPersonalParam cmsOadOrderPersonalParam) {
        return cmsOrderOperationRecordService.getCmsOrderOperationRecord(cmsOadOrderPersonalParam);
    }*/
    @ApiOperation(value = "查询订单操作日志",notes = "查询订单操作日志")
    @PostMapping(value = "/getOrderOperationLog")
    public Rv getOrderOperationLog(@RequestParam("orderNo") String orderNo){
        return cmsOrderOperationRecordService.getOrderOperationLog(orderNo);
    }

    /**
     * 订单轨迹打点
     *
     * @return
     */
    @PostMapping(value = "getCmsOrderTrajectoryPoint")
    public Rv getCmsOrderTrajectoryPoint(@RequestBody CmsOadOrderPersonalParam param) {
        return cmsOrderOperationRecordService.getCmsOrderTrajectoryPoint(param);
    }

}
